using System;
using System.Runtime.InteropServices;

namespace OpenNETCF.Wia
{
    public class CameraInitializationException : Exception
    {
        private COMException m_innerException;

        internal CameraInitializationException(string message, COMException root)
            : base(message)
        {
            m_innerException = root;
        }

        public int ErrorCode
        {
            get { return m_innerException.ErrorCode; }
        }
    }
}
